package com.itheima.spring;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-26 15:49
 **/
public class ApplicationContextListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        System.out.println("bean加载完成后,可以进行初始化相关操作了");
    }
}
